<h2><?php echo $this->layout()->pageTitle;?></h2>
<div class="header">
<?php
// Display Member info
if ($this->layout()->member) {
echo "<div id='welcome'>Logged in as: {$this->layout()->member->firstName} {
$this->layout()->member->lastName}</div>";
} // if ($this->view->member)
?>
<?php
// now show any messages the system has left us.
if (!empty($this->layout()->message)) {
echo "<div id='message'>".$this->layout()->message."</div>";
}
?>
</div>
<div id="navigation">
<p><a href="/index/index">Home</a>
<?php if ($this->layout()->member) { ?>
&nbsp;<a href="/history/listSearches">List Searches</a></p>
<?php } else { ?>
&nbsp;<a href="/index/login">Login</a>
&nbsp;<a href="/index/register">Register</a></p>
<?php } ?>
</div>